added sqlite fix for nested set