With input from JCarouth, fixed the Name class to use the db.