My question involves collection proceedings in the State of: Maryland

My home was foreclosed on and I had a second mortgage which was used for the down payment and remained unpaid after the foreclosure sale. The second mortgage loan became an unsecured debt as the collateral was liquidated in the foreclosure. Is the second mortgage loan considered a written contract or a promissory note and what would be the status of limitations on collecting the debt?