Both SQL queries added to dbLayout.rtf, second one improved a bit.