adapted to new exceptions in DatabaseService
added servlet for handling registration