def list_database_tables(database, mydb):
    """
    Get an array of all tables in a database.

    Args:
        database - The name of the database to list out
        mydb - A connected MySQL connection
    """
    tables = []
    cursor = mydb.cursor()
    cursor.execute('SHOW TABLES FROM `' + database + '`;')
    while True:
        rows = cursor.fetchmany(20)
        if not rows:
            break
        for entry in rows:
            name = entry[0]
            tables.append(name)
    return tables