Saving db call when rendering html.