Use an icon to search the database

I am trying to create a search icon to fill in the input boxes on a form.
How do I use a workflow to search the database(thing) and fill the inputs with the returned data.