change over to postgresql