added search and mysql interface to gotodir.php