Added ability to save the database in NodeWebkit or the browser