[bug] Fix tags not saving in postgres. Closes #4815