Changed include db connection to tools.php