Pushing php file that is supposed to move the global object connection to its own class file, but needs some work