now keeping range persistent and saved to db