Add rake to gemfile and fix the db example.