release db conn when waiting