'Check if a table exists in database
:param tableName: table name to check
:return: True if table exists, False if it does not'

def hasTable(self, tableName):

    return (len(self.select(u'SELECT    1    FROM    sqlite_master    WHERE    name    =    ?;', (tableName,))) > 0)
