updates the database after calculating predicted collection using the expression.