updated server logging messages for debugging
added xml results to db function