Get MySQL email database name from var, not hardcoded

Thanks @pjan