Sql file corrections

https://github.com/ionize/ionize/issues/122
https://github.com/ionize/ionize/pull/123