Starts agenda view and fixes bug with db schema