Back end: Implemented SQLite query closing after they are not needed anymore. Resolves #156.
Back end: Removed unnecessary while loops from SQLite database queries. Resolves #155.
Back end: Refactored book downloading so that unnecessary Question objects wouldn't be created.
Merge branch 'Backend'