Converts domains and connectors to database entities.