update functions to import db
update functions to import db