fix statistics: number of tickets from investing members
show membership type in backend/details
fix storage of ticket/membership type
refactoring: mail sender to config file