database check edit