Add sql vars + fix situation loader group by situationId