Functioning sockets/mongoDB for placing map pins