worked on sql some more