Move WithDatabase trait to Database engine
This trait can be used by other engines too, not only by the model,
so probably something to be defined in keruald/database or at least
to our Database engine.
This change allows the API engine to use this trait too, without
a strange reference to the model namespace.