Ruby script create CSV and DB