fixed db and render homepage