Tags edit, and show

Editing tags added and optimized some DB queries