Close db immediatly.