Bug fixing

Fix missing bracket. And missing passing the second parameter to the
executeSql