Updating install script to handle new sql structure