created a stored procedure to return completed mortgage statistics and all the necessary entities, TOs and Beans