fixes tag updating on postgres