Most Expensive Queries performance improvement

Most Expensive Queries query runs slow on large databases and fails with
command timeout. This commit improves the query and increases the
command timeout to 90 seconds