What filters to call to modify the output of the entire page?

You could attach the to wp_head action
http://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)