Fixed updating article categories in postgres