Multiple changes

Added much simpler version of database to correspond more to input data.
added function in database.php to export table to CSV.  Begin
implementing database population in install.php