refactor db wait into conn module