Added database class, csv filename, conditional to decide about doing db insert or writing to sample csv file, and code for doing db insert.
Added *swp to .gitignore.