added support to pass a DB env var