added unique block & pageid constraint