added support for environment specific db connection