Add footer for pages and fix db connection parameter issue.