added post method for actually writing back to the db