SQL to create a procedure to show events in the database

Create the procedure so you don't need the SQL script to call