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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)