fixing sql bugs
more debug info
fixed bug with notifies on removing block