reimplements mongdo db document creation, adjusts cap size