fixed issues with SQLite