Database fixes.
Added data object cloning.