externalize database config