[entropy.db.sqlite] simplify retrieveDependencies() code