add query_runner.rb and some sqls