Debug initial connection to db in index.php v2