Added csv and csv parsing for database input.