Added SQL queries for Tray operations and calculations

Signed-off-by: 10864698 <george.manning@student.uts.edu.au>
Merge branch 'master' of https://github.com/david-AGSGeo/ICTD_Spring2014
Added SQL Queries for report functions