I realize that many questions about deriving quantum gravity have been asked multiple times before on this forum, but it hasn't been asked exactly like I am doing here. I would like to know what specifically I get with this derivation; quantum gravity, quantum mechanics on curved space, something else, nothing? Also, if there are problems with it, what are they exactly --- non-renormalizable, transformations of GR violate the equations?
If I define an action as
$$ \mathcal{S}=\int \bar{\psi} (i\hbar c \gamma^\mu D_\mu - m c^2)\psi-\frac{1}{4 \mu_0} F_{\mu\nu}F^{\mu\nu} $$
Then, this is QED.
What if I gauge the wavefunction with respect to a general linear transformation:
$$ \psi'=g\psi g^{-1} $$
Then, I get the following gauge
$$ D_\mu \psi = \partial_\mu \psi -[iqA_\mu, \psi] $$
but, since the gauge is general linear, the field is:
$$ R_{\mu\nu}=[D_\mu,D_\nu] $$
Consequently, if I write the following action:
$$ \mathcal{S}=\int \bar{\psi} (i\hbar c \gamma^\mu D_\mu - m c^2)\psi-\frac{1}{4} R_{\mu\nu}R^{\mu\nu} $$
Is it quantum gravity. What are the problems with it?