trying to fix problem with stale db connections