Added activerecord relationships