add seed.rb for data population
fix bug in seed.rb