Removed redundant provides.
Started refactoring on database to make connection handling more managable.
Added message saying assignment is closed when visiting the /next/ page.