working API, model needs error checking. Able to save to the database