Add DB widget, restructure packages