trying to write post route for graphing