get db config from env