Add a function for automatically generating a unique ID from first/last name with proper setup/teardown of db

This basically supersedes #27, because I had to figure out how to do proper setup/teardown of a test database to run @jiffyclub's tests.