make rwdb.Document hashable (just by id)