-news events in main page are now dynamic
-updated all php sql functions to the newer ones