Learned that server will not persist my data if the conditions are not met once the server executes the part of the code that saves it. Weird