bring notes up to date with new rethink_pager

move photo extensions into the db, sort by those instead of using a dedicated
tag
sort by title instead of filename