fix the edit/show logic for baskets
fixes from basket url changes
better basket show
small fix to basket edit
little sql improvement