Allows to use default connection in from_dbid_or_entity method