it would be cleaner to have get_types return a hash and have this:
```ruby
@types = get_types(@typesdb)
```