more improvements to stepscan with db