Fetching variants details from DB.