I don’t know for sure if I understand what you did, but it sounds like you deleted the database for your entire WordPress site. I’m not sure how you would do that wile working with the theme.
If I understand the problem correctly, then you’re whole site would be down due to the inability to establish a database connection.
I don’t know if you install your site using FTP in cPanel, or if you’re using a 1 click install.
You can setup a new database in your cPanel, assign a user to the database with a username and password, and then edit your config.php file with the database info. Then when you try to load your site in a browser it should attempt to re-install WordPress. The re-installation will repopulate your database with the proper database tables.
You will have to go back and re-do your WordPress settings, and you’ll lose all of the changes you made in the theme customizer.
If you’re willing to spend a few bucks, I would recommend the backupbuddy plugin by iThemes. You can schedule regular backups of your entire WordPress installation including plugins, images, themes, etc., and have it sent to cloud storage on a regular basis.
If I misunderstood your problem, please let me know.