Revert "MySQL updated to MySQLI"

This reverts commit 70edf6d5e72a16ebb5d29d5685a59bd746ed0661.