     @IBOutlet weak var carPicker: UIPickerView!
 	
     var cars = [GTLGasstatsCar]()
+    var tankRecord = GTLGasstatsTankRecord()
 	var _refreshControl : UIRefreshControl?
 	var mpg: Double = 0.0
+    var statCount: NSNumber = 0
 	
 	override func viewWillAppear(animated: Bool) {
 		_queryForCars()
+        _queryForGasstats(NSNumber.init(integer: 0), userId: self.user_id)
+        _queryForTankRecord(NSNumber.init(integer: 0), userID: self.user_id)
 	}
 	
     override func viewDidLoad() {

        self.bottomLabelsView.hidden = editing
        self.bottomLabelsView.opaque = editing
    }

}


    }
    
    @IBAction func pressedLogIt(sender: AnyObject){
        _queryForGasstats(NSNumber.init(integer: carPicker.selectedRowInComponent(0)), userId: self.user_id)
        _queryForTankRecord(NSNumber.init(integer: carPicker.selectedRowInComponent(0)), userID: tankRecord.userId)
        var miles = (milesTextField.text as NSString).floatValue
        var gallons = (gallonsTextField.text as NSString).floatValue
        var cost = (costTextField.text as NSString).floatValue
