return the result of the block for db_connect