Adding a get all messages RPC