Email notification tables are all messed up