I am making a POST method. The following code takes in an object, takes the data from the object that it wants, then formats it into a new object and saves that to the datab