updated mailer methods to take in objects as arguments instead of having to query the database for it and deleted email and url instance variables