With this feature we have added in QGIS 3.2, it is now possible to save projects within a Postgres database.