Whoever, at the request of the owner or legal possessor of any personal property, shall store or care for or contribute in any of the modes mentioned in section 514.19 to its preservation, care, or to the enhancement of its value, shall have a lien upon such property for the price or value of such storage, care, or contribution, and for any legal charges against the same paid by such person to any other person, and the right to retain possession of the property until such lien is lawfully discharged.
Notwithstanding the voluntary surrender or other loss of possession of the property on which the lien is claimed, the person entitled thereto may preserve the lien upon giving notice of the lien at any time within 60 days after the surrender or loss of possession, by filing in the appropriate filing office under the Uniform Commercial Code, section 336.9-501, a verified statement and notice of intention to claim a lien. The statement shall contain a description of the property upon which the lien is claimed, the work performed or materials furnished and the amount due.
The lien shall be valid against everyone except a purchaser or encumbrancer in good faith without notice and for value whose rights were acquired prior to the filing of the lien statement and who has filed a statement of interest in the appropriate filing office. The lien shall be considered a security interest under the Uniform Commercial Code and foreclosure thereon shall be in the manner prescribed for security interests under article 9 of the Uniform Commercial Code.
Subdivisions 2 and 3 shall apply to machinery, implements and tools of all kinds but shall not apply to motor vehicles.