Convert SQLiteDatabase into a more convenient class.