sql connection extensions for simpler queries