cleanup, fixes and raw sql removed
Merge pull request #200 from vomikan/master

cleanup, fixes and raw sql removed
Fix MSVC compiler warnings.
Merge branch 'master' of https://github.com/moneymanagerex/moneymanagerex