Using a different method to update the data in the database