'Re-id the database.  This should be called after an rsync.
:param remote_id: the ID of the remote database being rsynced in'

def newid(self, remote_id):

    with self.get() as conn:
        row = conn.execute(('\n                                                                UPDATE    %s_stat    SET    id=?\n                                                ' % self.db_type), (str(uuid4()),))
        row = conn.execute(('\n                                                                SELECT    ROWID    FROM    %s    ORDER    BY    ROWID    DESC    LIMIT    1\n                                                ' % self.db_contains_type)).fetchone()
        sync_point = (row['ROWID'] if row else (-1))
        conn.execute('\n                                                                INSERT    OR    REPLACE    INTO    incoming_sync    (sync_point,    remote_id)\n                                                                VALUES    (?,    ?)\n                                                ', (sync_point, remote_id))
        self._newid(conn)
        conn.commit()
