Typescript Select Distinct Postgresql Jdbc