include python logic
sql stuff