wrapping up postgresql migration