Make database connection configurable