data duplication to mysql