First attempt at sql logging.

The log generator is currently completly bork, will be implemented in a
subsequent commit.
Forgot to add the config.example changes

Derp!
Merge branch 'master' of https://github.com/bobtwinkles/cslbot into dev
some sql fixes
make it not crash