This says sessions, but query is against keys table.