def createCar(self, params): # construct a car object from the gathered data car = Car(params[0], params[1], params[2], params[3], params[4], params[5], params[6], params[7], params[8]) # update the database with the new car and respond with a confirmation of insertion db.insertObject('cars', Car.attributesAsList(), car.asTuple()) return jsonify({'car': car.asDict()}), 201