changed mysql to postgre