add rwrandom in db_bench
add debug macros