event page - database error fix