MySQL scripts for PHP Invport