Generate and save results in DB if session is over.
TODO : refactor result object to transform it as a complex relation between rule & session.
TODO : handle results update.
Update results to insert rule object. Working now for creation.