get database config from environment