adding the environment to the install script and preping mysql for replication