Changelog-None: db: small code cleanup Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
We're going to reuse the database controllers for the accounting plugin