almost finish the mongo access