switch to active record and redoing the backend
more activerecord work