fix mysqli instance not being set