Modify sql to copy tags as well as categories