setup db environment