Refactored path skipping in debug panel
Removed deprecated function calls
Copied missing method from nette/database