Performance fix on changing tags

Tag changes now execute in 1 MySQL query