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