check for _id_rev, and col. when encrypting. Extracted document functions.