update assignments#index to show assignments from db