csi current implementation

csi - main program
lib/dataout.rb - output module.. table, detailed, csv...
lib/db.rb      - db access layer