Added several methods to UserDAO and related classes; added unit tests
for UserDAO.