altered sqlBasics for single bin prepare queries