Add migration check rake task

Adds new `db:check` task that checks if migrations are outstanding.
It raises and exception if so, and set RC to 1.
If all migrations have been applied, it outputs nothing and sets RC=0