Transport management system database design