added back sql and stuff
again