Simple DB-backed phrase table with tests