mysql now creates tags rather than python code
added tag_summary table
changed names of tag tables to be more consistent