replace procedural mysqli with object oriented mysqli