Issue #3001216 by longwave, mondrake, voleger, tstoeckler, Berdir, andypost: Use the database.replica service where appropriate