Adapt report generation to the new structure of the DB.

This PR introduces the necessary changes so PM can generate reports for projects started after July 1st, when the structure of the database (statusDB) has changed in order to be more in synch with the LIMS. 

For more details about these changes please refer to the document "10294_01 Scripting against Clarity LIMS"