Added logging in list update SQL