types should be looked up in the type.db not plugins
datetimes are better than passing around timestamps