fix mysql ext php errors converting to mysqli