Projective modules and their trace ideals