take db environment from a variable