Added mysql DB and functionality to main page