Website development has 2 phases, local development and testing, this uses the local testing server. Then deployment, this uses the remote database.
OK, FINE.
Then assist in pointing out where to change the database connection settings to use the remote database.