db/doc.Increment function added for atomic increment