improve DBHandlerImpl