Added sql query to update norec