some changes with postgresql