Add media relation tables for port, railnode and warehouse