@logExceptions(_LOGGER)<EOL><INDENT>@g_retrySQL<EOL>def connect(self, deleteOldVersions=False, recreate=False):<DEDENT>
<EOL>with ConnectionFactory.get() as conn:<EOL><INDENT>self._initTables(cursor=conn.cursor, deleteOldVersions=deleteOldVersions,<EOL>recreate=recreate)<EOL>conn.cursor.execute('<STR_LIT>')<EOL>self._connectionID = conn.cursor.fetchall()[<NUM_LIT:0>][<NUM_LIT:0>]<EOL>self._logger.info("<STR_LIT>", self._connectionID)<EOL><DEDENT>return<EOL>
Locate the current version of the jobs DB or create a new one, and
        optionally delete old versions laying around. If desired, this method
        can be called at any time to re-create the tables from scratch, delete
        old versions of the database, etc.

        Parameters:
        ----------------------------------------------------------------
        deleteOldVersions:   if true, delete any old versions of the DB left
                              on the server
        recreate:            if true, recreate the database from scratch even
                              if it already exists.