layermapping with foreign keys now