MySQL Realtime problem with deleting sips

When I delete sip device from database I can still make connections from deleted device to others. It seems like MySQL didn’t update status of my device (phone is still connecting to Asterisk even after reset).
Do you have any ideas how to fix it?

Check your allowguest setting.