updated to postgresql