Added result id handling.
Added database reset.
Added xml generator.