Fixing create sql

A Foreign key for od_pipe was referencing the "label_visible_1" column which was erroneously created under the "labelvisible_1" name. The sql is now fixed. Please check if this doesn't interfere with the pipe.ui.