Load template, connect to database, show current page