Converted history to mysql