fix ZeroDivisionError if there was only one query to database - issue #7
Merge pull request #8 from onjin/master

fix ZeroDivisionError if there was only one query to database - issue #7