saves the results in the database, and more