Add lost defines to index.php (debug)
Change getdbh() that fit with last security update