get priority to be from db