by Matt T.
You need to revert back to a 3.8.1 backup immediately. Ideally you would have taken a full site backup (code, moodledata, and database) before attempting to upgrade.
You won't be able to downgrade per se. You can only upgrade the Moodle database. To go back you need a full backup and will lose anything since that backup.