fixed view's get of statement object and removed unique constraint on co...

...ntext:registration id