tidy up views
move global config to db
trips_year is now a foreignkey