Work on click capture (Database script)