FIX: DataObject::db() doesn't respect overloaded db types (fixes #3620)