Made progress on functionality for saving csv into database

Pending model change.