Change all mysql to mysqli