Begins to save the results in the database