Add migration script

Add script to migrate data from CouchDB to PostgreSQL

Moving databases due to:
* Want to use Amazon RDB
* Out of practice with SQL