Add db migrate rake task

Convert the migration script into a rake task for consistency with all the other apps, so that we can easily run it as part of deploys.
I can see this biting someone in future.  Why does it automatically use a socket even when credentials are supplied?  Doesn't seem to fit with the goal of dev/prod parity.