Added export_database script.