Don't track other companies directories
Remove unnecessary references to $db as it is already a global variable