Fix for the Tag update in database.

Tag problem in gettask and gettasks got fixed