created basic server api using mux and mongodb