Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?

Use WordPress Ajax API for any kind of ajax related stuff.

For more details : http://codex.wordpress.org/AJAX_in_Plugins

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