testbin handlesql