fix postgres delete message with handled = false, replace int by boolean