Improves #100: Updated createdb.sql to match code

I don't know if this fixes all of the errors, but I will change it and send another pull request if I find any more.