Storing data to database and user registration

Look like you need used hook user_register

it’s return to you user id, after that you can save it in DB.

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