Multisite restores uploads to 'default' instead of actual db name

I spent some time investigating that but finally I got a fix :slight_smile:
https://github.com/discourse/discourse/pull/8218