Add getter method for entities in current database