Fix sql import errors
Merge pull request #298 from Foldor/master

Fix sql import errors