Tidying up. Now does backup and proper importing from the csv file.