fix db open leak(forget close), add coverity for project