Make database access configurable