Fix bug work with sqlite3