implement functions of tag dao