There seem to be some problems with the database. You could try to rename your .agtl/caches.db to something else.