added active record and migrations