fix spelling error
abstract out SQL in contests() to the db.rb
ignore the sqlite db
Merge branch 'master' of https://github.com/CPLUG/cpc