Utility class for SQL queries