Update code to use MySQLi connection
Updated Settings variable names