Switched everything to use the database connection resolver instance

Signed-off-by: Luca Degasperi <luca@lucadegasperi.com>