A database like storage engine in javascript