If the lien is not paid within 15 days after the expenses and costs were incurred, the department shall, in the name of the people of the State of California, commence an action to foreclose the lien. The action shall be commenced, tried, and determined in all respects as provided by law for the foreclosure of mortgages on personal property.