changing to postresql