Some progress in saving data to mysql