changed trashed to trashed_p, prepping procs to match sql