Fix slow album queries

This relates to the issue #724. With this changes, only fields that are really needed by a template are formatted into human readable strings.
The fix should make all queries faster but it especially applies to album queries, which where pulling and formatting all tracks fields just to get the album path (which was not used in most cases).
All tests and flake8 are ok.