Added check for gauth db entry.