Update CMDatabase.php