Simple DB adapter to allow simple database operations and unit testing