in reply to Default values in functions arguments
as for the second part, you should check out placeholder variables if you're using DBI. for more info, check out: What are placeholders in DBI, and why would I want to use them?.