Fixed Migration Issues with pg