Saving comparisons results in database.