Updating SQL to include response window