updated the installer to use the core functionality
removed the closing php tags
removing dead code
removing references to the unnecessary function call;
it always returned "1=1" for all the queries so they always evaluated to true and could therefore be dropped;