Adding sql stuff
adding more
Fixed db stuff