switched all data to mysql / json /php