Use bind for sql query