Lots of fixes, fixes #1

Adds in lowering ranks case when checking ranks in config (fixes the
bug)
Changes player storage in database to lowercase.
Fixes some debug messages, makes them more efficient (not calling twice)