close db issue