Changed cursor.moveToFirst checks to cursor != null checks to correspond with new DatabaseModel returns