fixed CLI translate foo, refactored out DB active record for CLI