bugfix
bugfix
some fixes
sql fixes
one more fix to make statistic work
Merge pull request #18 from alexander-ivanoff/ivanoff-dev

some fixes to make statistics work