Add job handling queries and to patients page