Close db after using it