ajusting config and request handler to the new mongo database