This entire routine needs to be moved into the `Pool`. This is because restoring a user is a pool operation, not a connection operation. A user calling `conn.restoreUser()` doesn't make any sense.