change adapter to postgresql