addone function waits for submitted deal to save to database so sorting can use id