fix reports query
Merge branch 'master' of https://github.com/Craftware/Kornell.git
profile v0.4
plus some other fixes