using pdo
subquery to aggergate plants available per source
gets plant info from db for drop down
fixed trim issue
fixed URL issue