In addition to any exemption of personal property, an individual debtor's aggregate interest, not to exceed five thousand dollars ($5,000) in value, in real or personal property that such debtor or a dependent of such debtor uses as a permanent residence in this state, or in a burial plot for such debtor or a dependent of such debtor is exempt from sale under execution, attachment or judgment, except to foreclose a mortgage given by the owner of a homestead or for purchase money due thereon. This exemption shall not apply if the debt or liability existed prior to the purchase of the property or the erection of the improvements thereon.
KRS 427.060