Work with contracts and some other changes.

Added following functionality:
* Work with the "contract" entities
* Work with the "monthPlan" entities
* Contract reports

Note:
Necessary to rework the SQL query to retrieve contracts.