Real database with nedb works now.  Just had to work out them js fake class thingers.