database results written to results page