Moved export_data() function to seperate file

Database errors may have been caused by having export_data() in
the models.py file.