Add function to create reverse relation