Added executeSql and querySql helper functions