Saving changes to database after check out.