Using PDO instead of mysqli and changed how configuration is handled