Management of Illegal State after interacting with the server's database