Added queries for sessions and SQL.