Updating SQL files to try and track down errors