added activerecord sessions