updated with sqlite3