base query addition to sql util