Inside your templates folder create 2 templates; one to display the contents of your database table and another to add records to the table. E.g. categories.html and add_category.html.
Set up the template inheritance within these to your base.html file including the content block to add to.
{% extends "base.html" %}
{% block content %}
<!-- Your content here -->
{% endblock %}
Then add a link to from the display page to the add page using a route that we will define shortly.
<a href="{{ url_for('add_category') }}">Add Category</a>