Invoicing tool in node.js and mongodb