persistence: Use AS-syntax in joins and selects.
removed debug print
Allow self-joins.
(failing) tests for self-joins.