added csv header, sorting records, replaced schema.rb with structure.sql