Correctly emit sql event
Correctly pass numbers
Formatting