updated to mysqli