XML work with db