db query working e2e for psql