changed email saving routine in db to return the insert id. customer id is no longer necessary for emails table