implement basic trip detail view and database access