maybe also make sure addId doesn't add text to lunaid
lncddb_test=# select * from enroll where id like 'test5';
eid | pid | etype | id | edate
-----+-----+--------+-------+-------
7 | 2 | LunaID | test5 |
select * from person_search_view;
ERROR: invalid input syntax for type integer: "test5"