small db fixes

mongo db close()