fix to session name. query sessions and ids by date
simpler date range query