added database template; cleaned up index page