Added db support and html output display