Error when restoring from backup

where should i look in the database or where

check the json file of address first if its not duplicate, if not then you can check the database

ok found it in database
but now i get
ImportError: cannot import name ‘create_print_uom_after_qty_custom_field’ from ‘erpnext.setup.install’ (/home/admin/books/shamz-bench/apps/erpnext/erpnext/setup/install.py)

while trying to update

and when i open website i get this error
ImportError: Module import failed for E Commerce Settings (frappe.core.doctype.e_commerce_settings.e_commerce_settings Error: No module named ‘frappe.core.doctype.e_commerce_settings’)

lol i think im going round in circles

i really am lost