Fix issue #119

Replaced deprecated functions with their supported counterparts via MySQLi. Fixes issue #119 (https://github.com/TheHostingTool/TheHostingTool/issues/119)