Update mysqli commands in php to take object oriented style instead of procedural style