corrected db todo