Aded code to pull items from DB.