Fixed Bug in index.php

Fixed issue with getallproducts
Changed SQL Access. Not Requireed Next Time