Refactored mysql script with small letters for linux bug. Refactored notification table with email status and added to persistence constants. Refactored mysql database so that some many to one relationships are one to one. Updated and refatored Entities, DAOs and ejbs accordinly aswell as tests.