Casting dbapi limit query_param to int

Since query params are provided by django as a String, all
limits were failing the comparison against the HARD_LIMIT
and thus a limit of 1 was getting turned into the HARD_LIMIT.
Logger name should be the module name
Merge pull request #156 from ramielrowe/master

Fixing a couple bugs