Example PHP class for MySql PDO connection and Preference management.