Close DB connection after page render.