Added select_values method to adapter
Refactored TableDefinition creation