Add monitor page; updated common PHP functions; linked WP to internal DB config