Storing events into database and redirecting to event detail