fix removal of Team[in/out]History by mistake, fix sql to_char to ISO week#, fix for to_char using creation date and not changegroup date