Changed database to SQLite3