Refactor instrumentor.js and use mongo update api to insert new recordings