postgres copy remote database to local code example
Example: mongodb copy database from remote to local
db.copyDatabase("DATABASENAME", "DATABASENAME", "localhost:27018");
db.copyDatabase("DATABASENAME", "DATABASENAME", "localhost:27018");