changed database to sqlite3