Live demo: fix db class, use it