added request tracking functionality to database; revised output structure