As I understood it, the data source is already provided, however it's my duty to parse the incoming format and into streets into database.
I'm going to deliver you neat, maintainable solution well-covered with tests, preferably RSpec (however other test frameworks are fine, too). See my SQL matchers portfolio sample to learn how I test.