Sql 5.6 schema fix

Fixes installation problems mentioned on irc.