Split accounts table preparation try-block into creation and updation
Move ROE exception catching inside the loops
Reformat code