Set up database and created header and footer using data from db