def sqlite_db_tables(c=None):
    """
    List the tables of a sqlite database.
    How do I list all tables/indices contained in an SQLite database :
        https://www.sqlite.org/faq.html#q7
    """
    db_tables = []

    if c is not None:
        c.execute('select name from sqlite_master where type = "table" and name NOT LIKE "%sqlite_%"')

        rows = c.fetchall()

        for r in rows:
            db_tables.append(r['name'])

    return db_tables