Added active record gem and some functionality