Add event SQL method added

Should be ready for the rest of the code