flexible database middleware toolkit for dirty jobs