models: remove not null constraint from definition_source table fields.
database: add support for importing definition_sources and foreign_relations.