status scratch sql