Simple Javascript Object Relational Mapping