pass args to fetchEntitiesFromDB