Store collection's parent in database (bug #77)