def db_init(self):
    self.db_table_all()
    conn = sqlite3.connect(self.dbname)
    try:
        for cre in self.create_dic:
            conn.execute(cre)
    except Exception as e:
        logger.info('Create table failed: {}'.format(e))
        return False
    finally:
        conn.close()
def db_init(self):
    self.db_table_all()
    conn = sqlite3.connect(self.dbname)
    try:
        for cre in self.create_dic:
            conn.execute(cre)
    except Exception as e:
        logger.info('Create table failed: {}'.format(e))
        return False
    finally:
        conn.close()