Grist using postgres datasource?

I realize the hosting version uses sqlite as the datasource, but can Grist itself be used on top of a postgres database? If so, is there any chance you would think of offering this as a hosted solution? What about bring your own database type of hosting solution, so you can host Grist software, but the database is connected via an external source?