According to the book: "When importing, the new records will be appended to the database if it is not empty. In general the new imported records will not have the same record id as the original (saved) records but web2py will restore references so they are not broken, even if the id values may change."
http://web2py.com/book/default/chapter/06?search=export_to_csv_file Have you tried it?