Adds a relationship wrapper helper function.
Removes test.sql file creation; uses in-memory.