refactoring DB plugins Part 1 - broken now - will fix tonight (issue
#121)