Updated current view to use spells and projects tables.
Amended relationships and backrefs in database models.
Updated rest of the code to use the new relationship()s.
Slight tweaks to order of dependencies.
Converted single quotes to double quotes.
Fixing the new relationship()-style queries.
Fixing the new relationship()-style queries.
Fixing the new relationship()-style queries.
Fixing the new relationship()-style queries.
Fixing the new relationship()-style queries.
Fixing the new relationship()-style queries.