I have a local SQL Database and I need to export this in any file and import when it's needed.
EDIT : I don't wanna use webservice because I wanna to do an app without connection but with export/import database when the device is connected function. As backup...make sense?
Its possible?
Here is my code
function initDatabase() {
try {
    if (!window.openDatabase) {
        alert('Databases are not supported in this browser.');
    } else {
        var shortName = 'DB';
        var version = '1.0';
        var displayName = ' Database';
        var maxSize = 100000; //  bytes
        DB = openDatabase(shortName, version, displayName, maxSize);
        createTables();
        selectAll();
    }
} catch(e) {
    if (e == 2) {
        // Version number mismatch.
        console.log("Invalid database version.");
    } else {
        console.log("Unknown error "+e+".");
    }
    return;
}
}
