Fixed exception when writing files and directories have not been created.
Merge branch 'master' of git@github.com:CoachLab2013/MMS.git
Updated reporting database scripts
Merge branch 'master' of git@github.com:CoachLab2013/MMS.git