Added support for dbstats and stats.
Made module work with https.
Merge pull request #1 from robman87/master

Some small improvements