added data#index and  #controller
errors
set up repository db, added methods to get repos and persist to db