working on db associations in rails