persistence.js: An Asynchronous Javascript ORM for HTML5/Gears. Since you always want to save data at some point, here's a link to a client-side ORM library for JavaScript. It looks quite good and could perhaps also be used for the server side. (I found another link for this that explicitly supports Node.js with MySQL).