database server with loop definition
add run_async interface function
added get_result interface function