Notice and recordation of lien of mechanic or laborer working for contractor or subcontractorFor the purpose of perfecting and preserving his or her lien, every workman, artisan, mechanic, laborer or other person who has performed any work or labor upon the building or improvement thereto, under a contract with any general contractor or with any subcontractor, as set forth in section six of this a