implements query and command for jdbc
support async method through introducing Future feature
move private methods to reuse