This function encapsulates the logic about which database connection
to use and is called by most of the update-*-from-* in the oodml
functions. Also allows overriding to control object connection
management (which is nice in heavily multithreaded (web) environs)