Updating FirstRule SQLQuery