sorted results; changed dbs; added xss filter