Fixed result discarding (only the worst result would be discarded).
Added database definition file.