fixed sqlite3 compatibility
Merge pull request #24 from ydkn/sqlite3_fix

Sqlite3 compatibility fix