Database calls should not be make in the renderer. All data that is needed in the renderer should be fetched then passed into the rendering function