Simplified uses_stored_proc by breaking it up a little