updated with sqlite3 commands