Wordpress now detects environment and connects to the appropriate database accordingly.