Ajax, PHP and MySQL link bookmarking script