implement a logging framework
some minor fixes
more fixes

Fixes #74
add dep to libqt5sql5
Merge pull request #81 from mzanetti/logging

implement a logging framework