changed Database to work with sqlite3