bill started to work on the database update functionality , writing the snippets of code that would take data from the purchase order form and update the database so there would be a record of the transaction .