updated sql to work with mysql; UI updates based on feedback from principals