can now connect to DB and query, trying to parse php files as html failing for inserting links in right column