fix bugs on filterNew
add db