parsing integers and floats before writing to redis db