Flat file database in node.js