Added new php file including all classes needed to perform functions within the site. Created only the database class for handling sql queries for now.
Changed mysql connector to mysqli and created a class in main library to easily query db and get result straight away from query.
Added classes to create objects to construct the  main and side menus for each page on the site.