files table created and method added to index.php