adds CSV file to database, creates functional index pages