Fixed problem with sql install script and fixed bug in php install script