adding db, transactions and displaying results on page as an example