more TODO
grid/gallery: add navigation dropdown in grid: all, new, starred
refactor: include flags bitmask in query
db: more flexible setFlags code, allows new and starred to be set simultaneously
gallery: fix marking first frupic as seen
gallery: allow unstarring when showing starred frupics

requery each frupic upon show to reflect current flags in the db. don't
requery the cursor, because unstarred frupics would disappear immediately
preferences: always keep starred images in cache option