switch the databases by environment