Add index for offsets in sqlite db
Add inspector script