Add relation methods to User and Gallery classes