adds tags to db and views