rectify target db issues