Thonem provides a comprehensive form validation and data prepping class that helps minimize the amount of code you’ll write.
Creating your Thonem Module is so easy, All you need is just make the same structure and go on.
How to perform SQL Query on Thonem while installing/uninstalling module
Get started with Thonem theme development, How to create your own Thonem Theme