refactor(credentials): take the database connection through the constructor fapost-lab/core#500@bpartnerMergedNov 25