Minor bug fixes plus DB change

Minor changes with new version.
DB change includes allowing NULL for name field in agent table since
it's optional.