Detailed transaction reports finally work!

Added custom selectClause() function, Cleaned up DAO and Detailed
report file. Workaround to allow sub-queries for now.