added db helper and some better views