add try finally blocks to close cursors
add file for sql test utils
create single line for testing db table row count