adding sqlite3 code