Updated sql from https://github.com/armm77/Events/commit/3145f964929f2f9520d7390451efb3f8e7e25223