working copy of koDB.pl