fix schema issues
Merge pull request #68 from koding/sqlfix

fix schema issues