rec format into mongodb table