Adds MySQL database support, for user settings.

This change adds MySQL database support. The datbase can be used to save
or load user settings currently.