move tag sql queries to function, change form field checking method
Merge pull request #4 from claflico/dev

move tag sql queries to function, change form field checking method