added indexes, changed engine to myisam
loadData does the data loading, cleans up medData