Updated display code to new smaller database