You should have already followed the recipe titled Displaying custom database table data in shortcodes to have an existing framework to augment. Alternatively, you can get the resulting code (Chapter 8/ch8-bug-tracker/ch8-bug-tracker-v6.php) from the code bundle and rename the file ch8-bug-tracker.php.