Database problem fixed, added wrapper.php, categories now show correct items.