I have a function that runs trim(), mysql_real_escape_string() and a few other things on any and all form input I receive. Recently, I've been switching over to ADOdb and was curious if there was some way I could pass my DB object into the function, so that I could run $db->qstr(). Any suggestions?