import sqlite3

connection = sqlite3.connect("restaurant.db")
cursor = connection.cursor()
a = cursor.execute("SELECT * FROM sqlite_master WHERE type = 'table'")
for i in a:
    if "category" in i or "plate" in i:
        print(i[1])
connection.commit()
connection.close()