fix  the bug about DB closing
compare list