fixes
works but missing stuff
Adding functionality to mysql