remove unused function
switch from MySQL extension to MySQLI

The old MySQL extension is deprecated and causes warnings in newer
PHP versions. Thus, switch to the new recommended mysqli extension.
When retrieving a MySQL row, always use fetch_assoc()
Merge pull request #32 from maul-esel/mysqli

Switch from MySQL to mysqli