adapter to postgresql