Fixed SQL for pricedata and topitems
Merge remote-tracking branch 'origin/master'