updated structure and flipped to mysql dbase