Make a db SELECT when an argument is provided