add a method for getting a connection from a database config, for situations where closing the connection is handled outside of prequel