fix(db): add 'calendar' to documents type CHECK constraint
The SQLite CHECK constraint on the documents table didn't include
'calendar', causing a 500 error when creating calendar documents.
Updated both the initial schema and the migration to include it.
Closes #481