Simple DB handler to manipulate and build queries