added tag resource and set up relationships in the models