Save router-id before updating Quantum DB

If it's a disassociation the router-id needs to be store
before updating Quantum DB

Fix bug MN-985