mysql connections close added to each php file