fix(js): escape dbname in lib/pq URL (#7479)