Update mysql to mysqli