load post data into mysql

I’m not sure of having understood what you are asking for. But if my guess is correct, you can achieve this goal by using $wpdb global variable.

But, in order to be more specific, I need to know how and when you want the database to update those informations.