Create mapping when creating a connection