Fetching variant options from the database.
Fetching the GrammarDefinition id for the given variant set.