Fix #14: Replace deprecated mysql_* functions with mysqli class.