In any action affecting the title to real estate or the ownership or rights to possession of personal property, the City may be made a party defendant for the purpose of obtaining a judgment or determination of its lien upon the property involved therein.