Added scratch sql