client side SQL