First hack at web service using mongodb