Insert taxonomy term to different table

Check out the codex: http://codex.wordpress.org/Function_Reference/get_terms

For example, if you don’t override the hide_empty argument, it will only retrieve terms that are attached to at least one post.

As for your code, there are no email and contact properties for a $term object. And why $result = ... if you’re not using it anywhere?

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