finish recording functionality

memory + mongo + rest api get+delete