change db adapter to postgres