update rof_parse.php

convert mysql calls to object oriented style