allow to safely close a sqlite db
Merge pull request #12 from lindahua/dh/close

Function to close SQLite connection