fixed internal use of count appends postgres schema prefix twice