better check for update queries
Merge pull request #1 from jorgelamb/update_query_check

better check for update queries