fix the bug
more sql
make all notification become {Kind,Tuple} format.