Fixing another functional issue. Client has to be queried with Client#client_id rather than Client#id.

This is because during handshake, the only parameters that get exchanged are client_id and not the database primary key.