Set up environments and env variables for db connections