The scriptname in the database is actually from the constructor:
GossipTutorial() : CreatureScript("ScriptNameHere") {}
GOSSIP_SENDER_MAIN is just a number that is passed to the OnGossipSelect(Code) as the sender variable.
Just like the action number gets sent to the OnGossipSelect(Code) as the action argument or w/e you are using.