removing transient and as a result serializing all fields in the StateVertex class + returning the inputed state instead returning the retrieved version from database when the state is found in the db