How to fix Cross-database references are not implemented in PostgreSQL | DevErrors