changed from sql sqlite3