Create a new table on the database and save parameters from a contact form

I suggest for you some ideas :

  1. Before run functions from you make, you register table database store ( Example WP_IP and WP_UTM )
  2. After create 2 table that, you run function of you
  3. You need read on Codex some resource on WP working with parameters :

https://codex.wordpress.org/Class_Reference/wpdb
https://codex.wordpress.org/Creating_Tables_with_Plugins