changes to allow items to be pulled from db