Make relation queries go to slave

Issue #244