!request: Changed the join() in list and links functions to use a tuple, allowing backwarn compatibility with SQLAlchemy 0.6 (ref: http://docs.sqlalchemy.org/en/latest/changelog/migration_07.html#more-succinct-form-of-query-join-target-onclause)

Signed-off-by: Martin Stone <martin@d7415.co.uk>
(cherry picked from commit 2d7520e6f5c62c5ec8bd5a5aa3b6f46701a18225)