Rework SQLitePlugin.js