change parse.rb to use lib/kdb.rb