Edit events working in the DB