fixing some usability bugs in backup scripts, as well as problems when a row does not contain a selected field when exporting csv