cleaning up db on destruction.