updated sql scaling demo