cdbUpdateDoc function

This function updates an existing doc