calendarProvider: database is not broken if filesize problem happens when only the new size is bigger.
calendarProvider: optimize ReplaceEventFile function. Certain operations (such as: changing an event's category, switching a task's state or adding information to an event) are now much faster.
Removing information from an event or deleting an event is as slow as before.