migration script for node.js and postgres