adding if-statement for selecting either sqlitePlugin.openDatabase() or webSql openDatabase()