Bugfix on SQL queries

Signed-off-by: pgnunes <pgh.nunes@gmail.com>
Merge branch 'master' of https://github.com/pgnunes/Meerkat-Monitor.git