fix db keepalive