oops, ensure index matches hash
update surname.py to handle new db schema