table key tweak, and graceful recovery of db connection in query