updateData
Called when an instance is updated.
connection.updateData(record)
Overwrites the stored instance with the new record. Then, goes through every query and adds or removes the instance if it belongs or not.