Convert domains and connectors to database entities.