Better yet -- CouchDB and PouchDB. You can use PouchDB for the browser side, CouchDB for the server, and Couchbase Mobile for the eventual mobile apps. Pros: offline and online; natural fit for document management; git-like revision and conflict management; simple to set up replication for backup. Cons: it's fallen out of favor; nobody seems to like writing the mapreduce code for searching and views.