Export to xls, db changes