modify rest geneec with mongodb