changing dates on SQL to ratings to sessions