Includes are basically just a way to keep your code clean by breaking it up into sections. When you include a file it's as though that file and the file that included it are one file. All the information from the included file is available to the first file. That's it.
So ez_sql.php is seen by index.php but not by the handler file which is prolly the one that actually needs to see it. Just move your include statement to your handler file.
I've found a good practice is to have one file with all of your utilities and include that 1 file in all your others, this way you can call any functions from that file from wherever, whenever.
Just be careful not to include the same file twice. Example:
file C contains utilities
file B includes file C
file A includes file B and file C
This will throw errors about redeclaring functions since file A is trying to include file C, but file C is already included because file A includes file B which already includes file C.
That should be confusing enough 🙂