updating to postgresql from mongodb