Unsupported install are, well, unsupported.
You can run a supported install by following our https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md where it is completely with an external database like our guide Running Discourse with a separate PostgreSQL server.