Make sure to close all database objects and geopackage objects to avoid locked tables when writing and then reading
Merge pull request #365 from jericks/geopkg_close

Make sure to close all database objects and geopackage objects