Updated SQL file to fix runtime errors