make notification view to be compatible with DB