attaching _last_cas on db.set to a Document