added draft field for calendar/announcement, fixed a few bugs in sql
versioning