Updated to match new db design
Model updated
calculate_trip_stat method added
Charts added
Cloud Endpoints added