updated session sql