changed SQL Ratigns to sessions date range