replacing nstore with nedb and adding mocha for testing