change datatype of currentstate from string to text