libraries/sql.lib.php file added. Functions in the sql.php transfered into sql.lib.php
libraries/display_indexes.lib.php file added. HTML generation for the create/edit indexes form transfered into display_indexes.lib.php