fixed torque renderer sql formatting