add row specification
add delayed queries
common functions in dbi_utils