If you don't already have a db/install.php file for your plugin, then you need to create one.
See https://docs.moodle.org/dev/Upgrade_API#install.php for some basic documentation, but look for an existing install.php in another plugin for an example.