Fix. Close db