Enhanced settings functionality

It's the name of the actual database. I've stayed consistent with the naming convention used previously by pylytics and also by the MySQLdb library itself, which labels it `db`.

See: http://mysql-python.sourceforge.net/MySQLdb.html#some-examples