Why is the value zero going in my custom database table?

A quick count shows me that you have 18 columns there, but only 16 types in the type array. Double check your types.

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