import pandas as pd
conn = sqlite3.connect("data.db")
c = conn.cursor()
df = pd.read_sql('select * from users, orders, items, commands, cats', conn)
df.to_excel(r'database.xlsx', index = False)
select * from users, orders, items, commands, cats
select * from users u join orders o on u.user_id = o.user_id