Add QueryExecutor to run SQL queries