[B] Fixed an issue with calendar caching that lead to wrong results.
[X] Protection against CSRF attacks.
[X] Database security improvements.