Added more javascript interaction and a return all rows query.