log2sql.rb #2