Added reverse and paths function to the Database class; moved to new version of SQLiteDatabase.