First draft with mongodb