implement non-persistent database connections and make them configurable