I would like to understand what you mean by upload the application and what specific error you are encountering. It would be helpful if you could provide details of your operations and the error messages you are seeing.
Based on the current information and speculating without full context, it is possible that your database has not been migrated. I have also hosted the database on a separate server. As long as the database is correctly configured in app.yml, the database will be automatically migrated during the rebuild of the image.