trying optimize sql queries
Merge branch 'master' of https://github.com/aleosd/sw_mon