how to check if sqlite table exists in nodejs
const sqlite3 = require( 'sqlite3' );
const db = new sqlite3.Database( './db.sqlite' );
db.get( 'SELECT name FROM sqlite_master WHERE type=table AND name=?', tbl, ( err, row ) => {
if ( err ) { console.error( err ); }
} );