added handlers for all stats

Split the push function for sql stats and added separate handlers different stat types
#### NOTE:
I also renames one of the variables because I'm evil. `stats_buffer` is now called `stats_packet` because at this point the data has left the buffer in a packet.