fixing DB Result issues