Such lien shall not be waived or impaired by the taking of any note or notes, or recovery of any judgment for the moneys so due, or for the work and labor performed and materials furnished; and such lien may be enforced by levy and sale, under execution, upon such judgment.
6 P.S. § 22