Separates update_tables() into updateKeySelector() and updateKeyManager()

Fixes #35, cleanup will be in future commit