add automator script and modify not to read the db