Query across multiple PostgreSQL databases