Updating somerule SQLQuery