Where is the table in the database that stores the themes settings?

I am trying to write a script that would write to the database all the styles and settings for the Social Theme. I have created several different color styles for the Social Theme and would like to use this script to set the styles and settings. This way I do not have to go in to the dashboard and customize and set the theme options manually.

Where is the table in the database that stores the themes styles and settings?

Thanks