How to save to custom database table with MODX Formit

There are several ways you can save data to a custom table using MODX, there is an Extra called FormSave which does it all for you, but if you want more control and would like to create your own table and connect using Formit, here is a step by step guide as to how to create this.