refactored model and rakestask code into single db.rb file in lib. get_matches rake task now takes optional sequence num argument.