added handlers for all stats
split function for sql stats
Merge pull request #21 from alexanderson/server-upgrade

added handlers for all stats