issue #14 - fixed SQL statements

by Stefan J., Andy
Merge branch 'master' of https://github.com/StefanTischler/Hugo.git