changed insert script, added missing method to tag model