ORM APP getBy amelioration