Typescript Array Add If Not Exists In Postgresql