Saving to the db was implemented on the front end side