Fix some bugs with recipe handling, database handling and NBT problems.