You should have already followed the Inserting and updating records in custom tables recipe to have an existing framework to augment. Alternatively, you can get the resulting code (Chapter 8/ch8-bug-tracker/ch8-bug-tracker-v4.php) from the code bundle and rename the file ch8-bug-tracker.php.