Updated mysql type to mysqli instead