Got the items api working and switched to raw queries