integrate DB with epoll server