Added the spinner and associated methods

the database needs debugging….