fix sqlite init code
Merge pull request #1 from oliver006/sqlite_fixes

fix sqlite init code