added debug output, mysql now strictly in config, temporary removal of NoCache header - there was a null issue