API and Query functions for schedule proposal & messages

Please note there have been made changes to schema.clj that could affect the front-end.
Database schema has also been changed.