'once lock is aquired we can configure the connection for
this particular instance of DBConnection'

def _set_row_factory(self):

    if (self.row_type == u'dict'):
        self.connection.row_factory = DBConnection._dict_factory
    else:
        self.connection.row_factory = sqlite3.Row
