Use application date insted of system #179

when manual schedule
Fix bug with writeOffMethod in create database script
Switch to version 13.12.
Merge branch 'master' into new
Add permissions to roles.