Changed SQL queries

Changed all queries using stmt::get_result() due to cs.knox.edu not
having the mysqlnd driver.