Mysql class update.

Using Mysqli now since the mysql functionality is deprecated as of php
5.5 and will be removed in a future version