fully closes sqlite file