repair IB_LONG_INT(X) macro
add sec/db block
modify new secblock implement