Added storage of commands in mongodb