move email table to core