Refactoring tbl_structure.php