assert_ref_or_dbID is properly exported