Oracle db bug fix and fk pk clms fetching