rec format onto mysql table