Optimise tag update db queries:

1) remove unused codeblock from tag_update.php

2) add to tag api a shortcut to not run database query if nothing has
changed on the tag.
`#` not `//`