fix db not close() bug.  create optimistic change definitions page