Mass database insertion in Rails