add check for params[:id]
finished assignmetn
add db changes