Changed DB ping logic and timings