Added connection to DB and added new pages