anishek | #2193 | moved the log statements to find db boundaries