Simplify and externalize database configuration