Editing database