Fixed issue with sqlite3