DataIO.php (v2)

still not tested
Updated sql script

Added new fields