externalize db config