If I understand correctly, you're using the Mackie as an input mixer between your keyboard (and possibly other inputs) and the input of your soundcard. And you're direct-monitoring the live sound via the Mackie, but have the playback of recorded sound from SONAR going direct to your monitors from your soundcard output. Have I got that right?
Frankly I'm afraid that sorting all this out is going to get more complicated than I want to try to do via forum posts. But basically you are going to want to eliminate the direct-monitored path, and monitor through SONAR if your soundcard will support a low enough audio latency.
The UNO you mentioned is a MIDI interface, so no audio is going through that. And if you're not using the synth, are you recording guitar or vocals or some other miced source? I'm basically asking these questions for the benefit of others who might jump in to help because I'm about to go offline myself.