Created MySQL procedure for determining the rack and elevation of any port.