rec format into postgre format