snapp: make filename primary key