merge into postgres