Fix sql config and stuff
Fix errors in models.py