SQL task repository