def _open(self, db, writeAccess=False):
if not pg:<EOL><INDENT>raise orb.errors.BackendNotFound('<STR_LIT>')<EOL><DEDENT>if db.timeout():<EOL><INDENT>os.environ['<STR_LIT>'] = '<STR_LIT>'.format(db.timeout())<EOL><DEDENT>try:<EOL><INDENT>return pg.connect(database=db.name(),<EOL>user=db.username(),<EOL>password=db.password(),<EOL>host=db.writeHost() if writeAccess else db.host(),<EOL>port=db.port(),<EOL>connect_timeout=<NUM_LIT:3>)<EOL><DEDENT>except pg.OperationalError as err:<EOL><INDENT>log.exception('<STR_LIT>')<EOL>raise orb.errors.ConnectionFailed()<EOL><DEDENT>
Handles simple, SQL specific connection creation.  This will not
have to manage thread information as it is already managed within
the main open method for the SQLBase class.

:param      db | <orb.Database>

:return     <variant> | backend specific database connection