fixed bind blob bug
added sql to sleeping log