exception handling added to query execution

Signed-off-by: Mikolaj Szabo <savingprivateblue@gmail.com>
Merge branch 'master' of github.com:privateblue/slickpools into with-console