SQL worker