-(maybe) fixed postgres issue with viewcounts.