db connection will now accept env variables.