Updated Ciprian Mocanu's mysql class with mysqli connections