added check for compatibility incoming xml data with db structure