convert back to postgresql