updated the mysqli class since the mysql class was being deprecated.