Takes in spin data to update the database.