use sqlite3, some typos