The question is. From the postgresql database, I get an array of data and want to link it to another table from the database, photos. As far as I understand, pool.query does