include database count in postgres integration fix #1191