adds results to resul database