changed mysql to mysqli