Updating SQL for 4.1